prepare for the post method