added clustering average invariant