removing unused debug code