updating for client