add post method.