fixed modifying rather than accessing in findCenterOfBlocks