use math.IsNaN instead of v != v