corrected function name in recursive call