look for NaN value while data reducing to min