now use cfg theory to find new paths