removed email and database code