final calculation modifications