added email function back, it was deleted by accident