fixed total calculations