get rid of dead code