post-processing for maximum