take out redundant labels