removing unused bad code