remove old num_validate function