updated to work with actual emails