update the client