delete excess classes