updated post to handle parent id