for speed, put is_number routines with low level classes