removal of unused references