this should be changed to edm::isNotFinite