debugged the debug printing