remove unused references