remove global var  from 'number' function