check if params are numeric