removing ref