udpating the client