routeset created, creating repair function