updated number check for whole number