removal of dead code