more updates to post func