check for infinity