checking for nan added