modified calculations