wrote a detector for looped lists, dunno what for