fixed dead code elimination