added postprocessing step to replace nan values with 0