updating a client