fixed debug outputs