further progress on calc barycenter