improvements on dead code output