replace the position by using the transform and remove the position member in the pathnode class