handling null and NaN
make