remove use of dead code