+fixes -isinf, isnan is needed