add return object for post and put