added email with objects, fixed name error