remove redundacies