removing refs