clean unused reference