refact the post summary