update client and remove client