change logics in email send