checks to make sure you give it an int