update the key