updates keys