changed the way gps NaN values are handled