diff --git a/src/uncategorized/corporationDevelopments.tw b/src/uncategorized/corporationDevelopments.tw
index a4f4543ad53c67c6ca8c1da9b2b1cdb2c3c418f5..c6fa6bf9b1471c0d38aa8a63fe23d441b204dd99 100644
--- a/src/uncategorized/corporationDevelopments.tw
+++ b/src/uncategorized/corporationDevelopments.tw
@@ -8,47 +8,43 @@
 <<if $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 20>>
 	<<set $corpDivTrainSurgeryTimer++>>
 <</if>>
-<<set _corpOpCost = 0>>
+<<set _corpOpCost = 0,
+_corpRev = 0,
+_corpAssetsSlave = 0>>
 
 __Corporation Management__
 <br>''Operational Results''
 /*Divisions doing their thing*/
 <<if $corpDivExtra == 1>>
 	<<if $mercenariesHelpCorp > 0>> /*This is the cost of acquiring slaves, the level of development is also the amount of slaves on average*/
-		<<set $corpCash -= 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2) - ($mercenaries - 2) * 50,
-		_corpOpCost += 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2) - ($mercenaries - 2) * 50,
+		<<set _corpOpCost += 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2) - ($mercenaries - 2) * 50,
 		_corpDivExtraSlaves = Math.trunc($corpDivExtraDev * (1 + random(-40,40) / 100)),
 		$corpDivExtraSlaves += _corpDivExtraSlaves>> /*the actual amount of slaves acquired*/
 	<<else>>
-		<<set $corpCash -= 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2),
-		_corpOpCost += 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2),
+		<<set _corpOpCost += 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2),
 		_corpDivExtraSlaves = Math.trunc($corpDivExtraDev * (1 + random(-40,40) / 100)),
 		$corpDivExtraSlaves += _corpDivExtraSlaves>>
 	<</if>>
 <</if>>
 <<if $corpDivLegal == 1>>
-	<<set $corpCash -= 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivExtraDev, 2),
-	_corpOpCost += 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivExtraDev, 2),
+	<<set _corpOpCost += 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivExtraDev, 2),
 	_corpDivLegalSlaves = Math.trunc($corpDivLegalDev * (1 + random(-25,25) / 100)),
 	$corpDivLegalSlaves += _corpDivLegalSlaves>>
 <</if>>
 <<if $corpDivBreak == 1>>
-	<<set $corpCash -= 450 * $corpDivBreakSlaves + Math.trunc(0.7 * Math.pow($corpDivBreakDev, 2)),
-	_corpOpCost += 450 * $corpDivBreakSlaves + Math.trunc(0.7 * Math.pow($corpDivBreakDev, 2)),
+	<<set _corpOpCost += 450 * $corpDivBreakSlaves + Math.trunc(0.7 * Math.pow($corpDivBreakDev, 2)),
 	_corpDivBreakProc = Math.trunc($corpDivBreakSlaves * 0.3 * (1 + random(-15,15) / 100)),
 	$corpDivBreakSlaves2 += _corpDivBreakProc,
 	$corpDivBreakSlaves -= _corpDivBreakProc>>
 <</if>>
 <<if $corpDivSurgery == 1>>
-	<<set $corpCash -= 2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2),
-	_corpOpCost += 2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2),
+	<<set _corpOpCost += 2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2),
 	_corpDivSurgeryProc = Math.trunc($corpDivSurgerySlaves * 0.5 * (1 + random(-10,10) / 100)),
 	$corpDivSurgerySlaves2 += _corpDivSurgeryProc,
 	$corpDivSurgerySlaves -= _corpDivSurgeryProc>>
 <</if>>
 <<if $corpDivTrain == 1>>
-	<<set $corpCash -= 700 * $corpDivTrainSlaves + Math.trunc(0.8 * Math.pow($corpDivTrainDev, 2)),
-	_corpOpCost += 700 * $corpDivTrainSlaves + Math.trunc(0.8 * Math.pow($corpDivTrainDev, 2)),
+	<<set _corpOpCost += 700 * $corpDivTrainSlaves + Math.trunc(0.8 * Math.pow($corpDivTrainDev, 2)),
 	_corpDivTrainProc = Math.trunc($corpDivTrainSlaves * 0.2 * (1 + random(-15,15) / 100)),
 	$corpDivTrainSlaves2 += _corpDivTrainProc,
 	$corpDivTrainSlaves -= _corpDivTrainProc>>
@@ -56,8 +52,7 @@ __Corporation Management__
 <<if $corpDivArcade == 1>>
 	<<set _corpOpCost += 200 * $corpDivArcadeSlaves + Math.trunc(0.125 * Math.pow($corpDivArcadeDev, 2)),
 	_corpDivArcadeRev = Math.trunc(1000 * (1 + random(-5,5) / 100) * $corpDivArcadeSlaves),
-	$corpRev += _corpDivArcadeRev,
-	$corpCash += _corpDivArcadeRev,
+	_corpRev += _corpDivArcadeRev,
 	_corpDivArcadeProc = $corpDivArcadeSlaves * 0.05 * (1 + random(-10,10) / 100)>>
 	<<if _corpDivArcadeProc > 1>>
 		<<set _corpDivArcadeProc = Math.trunc(_corpDivArcadeProc)>>
@@ -71,8 +66,7 @@ __Corporation Management__
 <<if $corpDivMenial == 1>>
 	<<set _corpDivMenialRev = Math.trunc(1250 * (1 + random(-10,10) / 100)) * $corpDivMenialSlaves,
 	_corpOpCost += 200 * $corpDivMenialSlaves + Math.trunc(0.1 * Math.pow($corpDivMenialDev, 2)),
-	$corpRev += _corpDivMenialRev,
-	$corpCash += _corpDivMenialRev,
+	_corpRev += _corpDivMenialRev,
 	_corpDivMenialProc = $corpDivMenialSlaves * 0.05 * (1 + random(-10,10) / 100)>>
 	<<if _corpDivMenialProc > 1>>
 		<<set _corpDivMenialProc = Math.trunc(_corpDivMenialProc)>>
@@ -86,8 +80,7 @@ __Corporation Management__
 <<if $corpDivDairy == 1>>
 	<<set _corpDivDairyRev = Math.trunc(3000 * (1 + random(-10,10) / 100) * $corpDivDairySlaves),
 	_corpOpCost += 850 * $corpDivDairySlaves + Math.trunc(0.4 * Math.pow($corpDivDairyDev, 2)),
-	$corpRev += _corpDivDairyRev,
-	$corpCash += _corpDivDairyRev,
+	_corpRev += _corpDivDairyRev,
 	_corpDivDairyProc = $corpDivDairySlaves * 0.05 * (1 + random(-10,10) / 100)>>
 	<<if _corpDivDairyProc > 1>>
 		<<set _corpDivDairyProc = Math.trunc(_corpDivDairyProc)>>
@@ -101,8 +94,7 @@ __Corporation Management__
 <<if $corpDivWhore == 1>>
 	<<set _corpDivWhoreRev = Math.trunc(3000 * (1 + random(-5,5) / 100) * $corpDivWhoreSlaves),
 	_corpOpCost += 700 * $corpDivWhoreSlaves + Math.trunc(0.25 * Math.pow($corpDivWhoreDev, 2)),
-	$corpRev += _corpDivWhoreRev,
-	$corpCash += _corpDivWhoreRev,
+	_corpRev += _corpDivWhoreRev,
 	_corpDivWhoreProc = $corpDivWhoreSlaves * 0.05 * (1 + random(-10,10) / 100)>>
 	<<if _corpDivWhoreProc > 1>>
 		<<set _corpDivWhoreProc = Math.trunc(_corpDivWhoreProc)>>
@@ -159,8 +151,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivExtraToMarket == 1 && $corpDivExtraSlaves > 0>>
 		It immediately sold <<if $corpDivExtraSlaves > 1>>$corpDivExtraSlaves slaves<<elseif $corpDivExtraSlaves > 0>>one slave<</if>>
 		<<set _corpDivExtraRev = $corpDivExtraSlaves * 10 * menialSlaveCost(-_corpDivExtraSlaves),
-		$corpCash += _corpDivExtraRev,
-		$corpRev += _corpDivExtraRev,
+		_corpRev += _corpDivExtraRev,
 		$corpDivExtraSlaves = 0>>
 		to the market and made @@.yellowgreen;<<print cashFormat(_corpDivExtraRev)>>.@@
 	<<elseif $corpDivExtraSlaves > 0>>
@@ -168,8 +159,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 		<<if $corpDivExtraSlaves > $corpDivExtraDev * 2>> /*The division can store some slaves it has acquired/processed, but not a huge amount*/
 			<<set _corpDivExtraCapSlaves = $corpDivExtraSlaves - $corpDivExtraDev * 2,
 			_corpDivExtraRev = _corpDivExtraCapSlaves * 10 * menialSlaveCost(-_corpDivExtraCapSlaves),
-			$corpCash += _corpDivExtraRev,
-			$corpRev += _corpDivExtraRev,
+			_corpRev += _corpDivExtraRev,
 			$menialDemandFactor -= _corpDivExtraCapSlaves,
 			$corpDivExtraSlaves = $corpDivExtraDev * 2>> /*slaves over holding capacity get sold*/
 			But it ran out of storage space and had to sell <<if _corpDivExtraCapSlaves > 1>>@@.red;<<print _corpDivExtraCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivExtraRev)>>.@@
@@ -221,8 +211,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivLegalToMarket == 1 && $corpDivLegalSlaves > 0>>
 		It immediately sold <<if $corpDivLegalSlaves > 1>><<print $corpDivLegalSlaves>> slaves<<else>>one slave<</if>>
 		<<set _corpDivLegalRev = $corpDivLegalSlaves * 10 * menialSlaveCost(-$corpDivLegalSlaves),
-		$corpCash += _corpDivLegalRev,
-		$corpRev += _corpDivLegalRev,
+		_corpRev += _corpDivLegalRev,
 		$corpDivLegalSlaves = 0>>
 		to the market and made @@.yellowgreen;<<print cashFormat(_corpDivLegalRev)>>.@@
 	<<elseif $corpDivLegalSlaves > 0>>
@@ -230,8 +219,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 		<<if $corpDivLegalSlaves > $corpDivLegalDev * 2>>
 			<<set _corpDivLegalCapSlaves = $corpDivLegalSlaves - $corpDivLegalDev * 2,
 			_corpDivLegalRev = _corpDivLegalCapSlaves * 15 * menialSlaveCost(-_corpDivLegalCapSlaves),
-			$corpCash += _corpDivLegalRev,
-			$corpRev += _corpDivLegalRev,
+			_corpRev += _corpDivLegalRev,
 			$menialDemandFactor -= _corpDivLegalCapSlaves,
 			$corpDivLegalSlaves = $corpDivLegalDev * 2>>
 			But it ran out of storage space and had to sell <<if _corpDivBreakCapSlaves > 1>>@@.red;<<print _corpDivBreakCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivLegalRev)>>.@@
@@ -244,8 +232,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivBreakFromMarket == 1 && _corpDivBreakSlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivBreakSlavesRoom>> slaves that need breaking from the market.
 		<<set _corpDivBreakAssetsSlave = _corpDivBreakSlavesRoom * 10 * menialSlaveCost(_corpDivBreakSlavesRoom),
-		$corpCash -= _corpDivBreakAssetsSlave,
-		$corpAssetsSlave += _corpDivBreakAssetsSlave,
+		_corpAssetsSlave += _corpDivBreakAssetsSlave,
 		$corpDivBreakSlaves = $corpDivBreakDev>>
 	<</if>>
 	<<if $corpDivBreakToMenial == 1 && _corpDivMenialSlavesRoom > 0>>
@@ -290,8 +277,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivBreakToMarket == 1 && $corpDivBreakSlaves2 > 0>>
 		It immediately sold <<if $corpDivBreakSlaves2 > 1>>$corpDivBreakSlaves2 slaves<<else>>one slave<</if>>
 		<<set _corpDivBreakRev = $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2),
-		$corpCash += _corpDivBreakRev,
-		$corpRev += _corpDivBreakRev,
+		_corpRev += _corpDivBreakRev,
 		$corpDivBreakSlaves2 = 0>>
 		to the market and made @@.yellowgreen;<<print cashFormat(_corpDivBreakRev)>>.@@
 	<<elseif $corpDivBreakSlaves2 > 0>>
@@ -299,8 +285,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 		<<if $corpDivBreakSlaves2 > Math.trunc($corpDivBreakDev * 0.6)>>
 			<<set _corpDivBreakCapSlaves = $corpDivBreakSlaves2 - Math.trunc($corpDivBreakDev * 0.6),
 			_corpDivBreakRev = _corpDivBreakCapSlaves * 15 * menialSlaveCost(-_corpDivBreakCapSlaves),
-			$corpCash += _corpDivBreakRev,
-			$corpRev += _corpDivBreakRev,
+			_corpRev += _corpDivBreakRev,
 			$menialDemandFactor -= _corpDivBreakCapSlaves,
 			$corpDivBreakSlaves2 = Math.trunc($corpDivBreakDev * 0.6)>>
 			But it ran out of storage space and had to sell <<if _corpDivBreakCapSlaves > 1>>@@.red;<<print _corpDivBreakCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivBreakRev)>>.@@
@@ -313,8 +298,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivSurgeryFromMarket == 1 && _corpDivSurgerySlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivSurgerySlavesRoom>> slaves that could use some work done to their bodies from the market.
 		<<set _corpDivSurgeryAssetsSlave = _corpDivSurgerySlavesRoom * 15 * menialSlaveCost(_corpDivSurgerySlavesRoom),
-		$corpCash -= _corpDivSurgeryAssetsSlave,
-		$corpAssetsSlave += _corpDivSurgeryAssetsSlave,
+		_corpAssetsSlave += _corpDivSurgeryAssetsSlave,
 		$corpDivSurgerySlaves = $corpDivSurgeryDev,
 		_corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom()>>
 	<</if>>
@@ -347,8 +331,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivSurgeryToMarket == 1 && $corpDivSurgerySlaves2 > 0>>
 		It immediately sold <<if $corpDivSurgerySlaves2 > 1>><<print $corpDivSurgerySlaves2>> slaves<<else>>one slave<</if>>
 		<<set _corpDivSurgeryRev = $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2),
-		$corpCash += _corpDivSurgeryRev,
-		$corpRev += _corpDivSurgeryRev,
+		_corpRev += _corpDivSurgeryRev,
 		$corpDivSurgerySlaves2 = 0>>
 		to the market and made @@.yellowgreen;<<print cashFormat(_corpDivSurgeryRev)>>.@@
 	<<elseif $corpDivSurgerySlaves2 > 0>>
@@ -356,8 +339,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 		<<if $corpDivSurgerySlaves2 > Math.trunc($corpDivSurgeryDev)>>
 			<<set _corpDivSurgeryCapSlaves = $corpDivSurgerySlaves2 - Math.trunc($corpDivSurgeryDev),
 			_corpDivSurgeryRev = _corpDivSurgeryCapSlaves * 23 * menialSlaveCost(-_corpDivSurgeryCapSlaves),
-			$corpCash += _corpDivSurgeryRev,
-			$corpRev += _corpDivSurgeryRev,
+			_corpRev += _corpDivSurgeryRev,
 			$menialDemandFactor -= _corpDivSurgeryCapSlaves,
 			$corpDivSurgerySlaves2 = Math.trunc($corpDivSurgeryDev)>>
 			But it ran out of storage space and had to sell <<if _corpDivSurgeryCapSlaves > 1>>@@.red;<<print _corpDivSurgeryCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivSurgeryRev)>>.@@
@@ -371,14 +353,12 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 		<<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0 && _corpDivTrainSlavesRoom > 0>>
 			It replenished its slave stock and bought <<print _corpDivTrainSlavesRoom>> slaves that need slave training from the market.
 			<<set _corpDivTrainAssetsSlave = _corpDivTrainSlavesRoom * 15 * menialSlaveCost(_corpDivTrainSlavesRoom),
-			$corpCash -= _corpDivTrainAssetsSlave,
-			$corpAssetsSlave += _corpDivTrainAssetsSlave,
+			_corpAssetsSlave += _corpDivTrainAssetsSlave,
 			$corpDivTrainSlaves = $corpDivTrainDev>>
 		<<elseif _corpDivTrainSlavesRoom > 0>>
 			It replenished its slave stock and bought <<print _corpDivTrainSlavesRoom>> slaves that need slave training from the market.
 			<<set _corpDivTrainAssetsSlave = _corpDivTrainSlavesRoom * 23 * menialSlaveCost(_corpDivTrainSlavesRoom),
-			$corpCash -= _corpDivTrainAssetsSlave,
-			$corpAssetsSlave += _corpDivTrainAssetsSlave,
+			_corpAssetsSlave += _corpDivTrainAssetsSlave,
 			$corpDivTrainSlaves = $corpDivTrainDev>>
 		<</if>>
 	<</if>>
@@ -399,22 +379,19 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 		<<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>>
 			It immediately sold <<if $corpDivTrainSlaves2 > 1>>$corpDivTrainSlaves2 slaves<<else>>one slave<</if>>
 			<<set _corpDivTrainRev = $corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2),
-			$corpCash += _corpDivTrainRev,
-			$corpRev += _corpDivTrainRev,
+			_corpRev += _corpDivTrainRev,
 			$corpDivTrainSlaves2 = 0>>
 			to the market and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@
 		<<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 5>>
 			It immediately sold <<if $corpDivTrainSlaves2 > 1>>$corpDivTrainSlaves2 slaves<<else>>one slave<</if>>
 			<<set _corpDivTrainRev = Math.trunc($corpDivTrainSlaves2 * (26 + $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost(-$corpDivTrainSlaves2)),
-			$corpCash += _corpDivTrainRev,
-			$corpRev += _corpDivTrainRev,
+			_corpRev += _corpDivTrainRev,
 			$corpDivTrainSlaves2 = 0>>
 			to the market and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@
 		<<else>>
 			It immediately sold <<if $corpDivTrainSlaves2 > 1>><<print $corpDivTrainSlaves2>> slaves<<else>>one slave<</if>>
 			<<set _corpDivTrainRev = $corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2),
-			$corpCash += _corpDivTrainRev,
-			$corpRev += _corpDivTrainRev,
+			_corpRev += _corpDivTrainRev,
 			$corpDivTrainSlaves2 = 0>>
 			to the market and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@
 		<</if>>
@@ -423,16 +400,14 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 			<<if $corpDivTrainSurgeryTimer < 5 || $corpDivSurgery == 0>>
 				<<set _corpDivTrainCapSlaves = $corpDivTrainSlaves2 - Math.trunc($corpDivTrainDev * 0.4),
 				_corpDivTrainRev = _corpDivTrainCapSlaves * 26 * menialSlaveCost(-_corpDivTrainCapSlaves),
-				$corpCash += _corpDivTrainRev,
-				$corpRev += _corpDivTrainRev,
+				_corpRev += _corpDivTrainRev,
 				$menialDemandFactor -= _corpDivTrainCapSlaves,
 				$corpDivTrainSlaves2 = Math.trunc($corpDivTrainDev * 0.4)>>
 				But it ran out of storage space and had to sell <<if _corpDivTrainCapSlaves > 1>>@@.red;<<print _corpDivTrainCapSlaves>> slaves@@<<elseif _corpDivTrainCapSlaves > 0>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@
 			<<else>>
 				<<set _corpDivTrainCapSlaves = $corpDivTrainSlaves2 - Math.trunc($corpDivTrainDev * 0.4),
 				_corpDivTrainRev = _corpDivTrainCapSlaves * 34 * menialSlaveCost(-_corpDivTrainCapSlaves),
-				$corpCash += _corpDivTrainRev,
-				$corpRev += _corpDivTrainRev,
+				_corpRev += _corpDivTrainRev,
 				$menialDemandFactor -= _corpDivTrainCapSlaves,
 				$corpDivTrainSlaves2 = Math.trunc($corpDivTrainDev * 0.4)>>
 				But it ran out of storage space and had to sell <<if _corpDivTrainCapSlaves > 1>>@@.red;<<print _corpDivTrainCapSlaves>> slaves@@<<elseif _corpDivTrainCapSlaves > 0>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@
@@ -447,8 +422,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivArcadeFromMarket == 1 && _corpDivArcadeSlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivArcadeSlavesRoom>> fresh slaves from the market.
 		<<set _corpDivArcadeAssetsSlave = _corpDivArcadeSlavesRoom * 10 * menialSlaveCost(_corpDivArcadeSlavesRoom),
-		$corpCash -= _corpDivArcadeAssetsSlave,
-		$corpAssetsSlave += _corpDivArcadeAssetsSlave,
+		_corpAssetsSlave += _corpDivArcadeAssetsSlave,
 		$corpDivArcadeSlaves = $corpDivArcadeDev>>
 	<</if>>
 <</if>>
@@ -459,8 +433,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivMenialFromMarket == 1 && _corpDivMenialSlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivMenialSlavesRoom>> menial slaves from the market.
 		<<set _corpDivMenialAssetsSlave = _corpDivMenialSlavesRoom * 15 * menialSlaveCost(_corpDivMenialSlavesRoom),
-		$corpCash -= _corpDivMenialAssetsSlave,
-		$corpAssetsSlave += _corpDivMenialAssetsSlave,
+		_corpAssetsSlave += _corpDivMenialAssetsSlave,
 		$corpDivMenialSlaves = $corpDivMenialDev>>
 	<</if>>
 <</if>>
@@ -471,8 +444,7 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivDairyFromMarket == 1 && _corpDivDairySlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivDairySlavesRoom>> cows from the market.
 		<<set _corpDivDairyAssetsSlave = _corpDivDairySlavesRoom * 23 * menialSlaveCost(_corpDivDairySlavesRoom),
-		$corpCash -= _corpDivDairyAssetsSlave,
-		$corpAssetsSlave += _corpDivDairyAssetsSlave,
+		_corpAssetsSlave += _corpDivDairyAssetsSlave,
 		$corpDivDairySlaves = $corpDivDairyDev>>
 	<</if>>
 <</if>>
@@ -483,14 +455,12 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpDivWhoreFromMarket == 1 && $corpDivTrainSurgerySwitch > 0 && _corpDivWhoreSlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivWhoreSlavesRoom>> trained whores from the market.
 		<<set _corpDivWhoreAssetsSlave = _corpDivWhoreSlavesRoom * 34 * menialSlaveCost(_corpDivWhoreSlavesRoom),
-		$corpCash -= _corpDivWhoreAssetsSlave,
-		$corpAssetsSlave += _corpDivWhoreAssetsSlave,
+		_corpAssetsSlave += _corpDivWhoreAssetsSlave,
 		$corpDivWhoreSlaves = $corpDivWhoreDev>>
 	<<elseif $corpDivWhoreFromMarket == 1 && _corpDivWhoreSlavesRoom > 0>>
 		It replenished its slave stock and bought <<print _corpDivWhoreSlavesRoom>> trained whores from the market.
 		<<set _corpDivWhoreAssetsSlave = _corpDivWhoreSlavesRoom * 26 * menialSlaveCost(_corpDivWhoreSlavesRoom),
-		$corpCash -= _corpDivWhoreAssetsSlave,
-		$corpAssetsSlave += _corpDivWhoreAssetsSlave,
+		_corpAssetsSlave += _corpDivWhoreAssetsSlave,
 		$corpDivWhoreSlaves = $corpDivWhoreDev>>
 	<</if>>
 <</if>>
@@ -506,9 +476,13 @@ _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>
 	<<if $corpEasy == 1>>
 		<<set _corpOverhead = Math.trunc(_corpOverhead / 2)>>
 	<</if>>
-<</if>> 
-<<set $corpCash -= _corpOverhead,
-_corpProfitProvisional = $corpRev - $corpAssetsDev - $corpAssetsSlave - _corpOpCost>>
+<</if>>
+
+/*cash, rev and costs state variables get corrected here*/
+<<set $corpCash += _corpRev - (_corpOverhead + _corpOpCost + _corpAssetsSlave),
+$corpRev += _corpRev,
+$corpAssetsSlave += _corpAssetsSlave,
+_corpProfitProvisional = $corpRev - ($corpAssetsDev + $corpAssetsSlave + _corpOpCost + _corpOverhead)>>
 <<if _corpProfitProvisional > 0>>
 	<<set $corpEcon = Math.trunc(_corpProfitProvisional / (100 / $localEcon) - _corpProfitProvisional),
 	$corpCash += $corpEcon,
diff --git a/src/uncategorized/neighborsDevelopment.tw b/src/uncategorized/neighborsDevelopment.tw
index e87743ebd51d7beb3ff14e809411db7c7124f4cd..b7fcf36b570866692b75f44b9749d4b73e73d251 100644
--- a/src/uncategorized/neighborsDevelopment.tw
+++ b/src/uncategorized/neighborsDevelopment.tw
@@ -9,8 +9,10 @@
 <</for>>
 <<set $averageProsperity = $averageProsperity/$arcologies.length>>
 
-<<set _corpBonus = Math.trunc(1000 * Math.pow(corpValue(), 0.1)),
-$corpNeighborBonus = 0>>
+<<if $corpIncorporated == 1>>
+	<<set _corpBonus = Math.trunc(1000 * Math.pow(corpValue(), 0.1)),
+	$corpNeighborBonus = 0>>
+<</if>>
 
 <<if $useTabs == 0>>__Arcologies in the Free City__<</if>>
 
@@ -1908,8 +1910,10 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol
 	<</if>>
 <</if>>
 
-<<set $corpCash += $corpNeighborBonus,
-$corpRev += $corpNeighborBonus>>
+<<if $corpIncorporated == 1>>
+	<<set $corpCash += $corpNeighborBonus,
+	$corpRev += $corpNeighborBonus>>
+<</if>>
 
 /* FUTURE SOCIETY ADOPTION */