add isinf and isnan