method formatPostData