number checking use function