remove returned NaNs