added some queries for getting emails of those needed