working get method and post added