rework of algorithm to pick only one school per routingpoint