add is_numeric validation to functions