submit method change