cleaned up email fnct