fixed accidental infinite recursion caused by refactoring in Main. oops