use a method to submit the post