update the key to vector