add isNumber check and isNumber method for each