made parentDist variable during run