added gini index update