change code for post