removing repetitive paths, experitment part 1