isnan must be dynamic

removed static method isnan and copied to dynamic functions