minor changes in sending mails