add return client speed function