updated for email object