changed the null from 0 to NaN