add post method and edit other files