shortens path in case of operations