remove overlapping definitions