fix the post method