detect cycle, has cycle, PE 076