adds checking to the argument to make sure its an int