made changes to fix mailer