implement centers estimation