fixed debug mode printing