update the keys