fixed use of pathComp