remove duplicate instances