change println to debug-logging