added calculateCenterOffset