change is_integer to is_numeric