added rewritten changes to pathSite and pathSide