working update for post_type