refacto post data