removing weird references