updated the post method