Combine re element into constructPath

remove this line