problem solved finds the cycles faster now