paths uses rot function from utility