correct the condition to check the number