change function in email