added setPostData method