add #getPath for calculate path for element