update to post method