ready for rest of program, removed recursion check