removing unused references