removing unused code paths