added check to hole length

checking to see if the variable is a number