remove the NaNs