modified from id to post_id