what makes this immune to the NaN issue?