little changing to the email function but is still not working