accept number of clients as argument