ERROR: Arithmetic: a/0 is not a function" number



Hello,
I have just written:
l(T1,T2):- number(T1),T2 is 2*T1.
l(T1,T2):- not(number(T1)),T2 is T1.
It have to double the numbers, and pass the rest. However when I run it:
l(a,X).
I got:
ERROR: Arithmetic: a/0 is not a function" number

Which is a very crazy thing. When i write:
number(a).
I just got:
Yes.

What's wrong?

Regards,
Talthen


.