check for inf