working on the post functions