make sure only integers are compared