change algorithm of short route creation

the old one was causing errors and technically does not fit the job