amended postprocessing functions