changes methods to post