add function to allow only input numbers