adding check for nans