submit method and prepare to send