new algorithm for concentration added