fixed the post method