get compound from path
typo