update post functions