implemented pairClients method.