clean up unused references