center of mass computed