new gen path method with no stack overflow

for some reason recursion caused stack overflow errors on the phone loop
seems to have fixed that