add genList and take out stupid if statement in recursive functions