modify post method