added PUT method into post