created a new getProvidersByRoles method