Combine re element into constructPath
Merge pull request #4993 from pramodhkp/rectelmnt

Combine re element into constructPath