updating keys