tried to cut corners finding cycles, will scrap