correct range on highlighting