add new post-processing function