dangling debug printf eliminated