rearranged the output order of the mailer