Combine re element into constructPath

no need for this change