look for NaN only instead of any non finite value
replace missing area (NaN) with 0