second iteration -- fixed center-of-points calculation