adding email functionality to updated copy