fixed debug statement, now correct output