work on legacy reference deletion