change keys to range