extra calculations