removes unused reference