modify email functions