generate post and comment