forClients function