now creates correct LCP also for circular shifts