replace missing numbers with NaN