added filtering to email response