removes dead code