added ability to delete references