diff --git a/TODO.txt b/TODO.txt
index 4ffbc51e5bd7ce0778c370dd2c3bfd663b9c017c..1a1c8417d4b549114d118f7732a5dd095193371c 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -4,7 +4,6 @@ Rebellions:
 further development:
 -specialized slave schools
 -fortifications
--security based careers should have discount on secHQ upgrades
 -celebrity on propHub
 -more levels for militia edict (further militarize society)
 -conquering other arcologies?
diff --git a/src/SecExp/securityHQ.tw b/src/SecExp/securityHQ.tw
index 189ab8922482e1e9f27940cf17c6fe4238398425..4b4497ce5e85a762f711b84eb85f405cc86a73fe 100644
--- a/src/SecExp/securityHQ.tw
+++ b/src/SecExp/securityHQ.tw
@@ -1,5 +1,11 @@
 :: securityHQ [nobr]
 
+<<if $career == "mercenary" || $career == "gang" || $career == "slaver">>
+	<<set _HistoryDiscount = .5>>
+<<else>>
+	<<set _HistoryDiscount = 1>>
+<</if>>
+
 <<set $nextButton = "Back to Arcology Management", $nextLink = "Manage Arcology", $returnTo = "Manage Arcology">>
 
 Security headquarters
@@ -105,30 +111,30 @@ Considering the current upgrades the resting level for security is <<print $secR
 <br>
 
 <<if $secUpgrades.nanoCams == 0>>
-	[[Install a nano-camera system |securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $secUpgrades.nanoCams = 1, $secRestPoint += 15, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>. Will raise rest point of security by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Install a nano-camera system |securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.nanoCams = 1, $secRestPoint += 15, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will raise rest point of security by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have installed all across the arcology closed circuit nano-cameras to keep the arcology under your watchful eye.
 <</if>>
 <br>
 <<if $secUpgrades.cyberBots == 0>>
-	[[Buy cybersecurity algorithms|securityHQ][$cash -= Math.trunc(7500*$upgradeMultiplierArcology), $secUpgrades.cyberBots = 1, $secRestPoint += 15, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(7500*$upgradeMultiplierArcology)>>. Will raise rest point of security by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Buy cybersecurity algorithms|securityHQ][$cash -= Math.trunc(7500*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.cyberBots = 1, $secRestPoint += 15, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(7500*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will raise rest point of security by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have bought advanced cybersecurity algorithms that will defend your arcology against hack attempts or cyber frauds.
 <</if>>
 <br>
 <<if $rep > 10000>>
 	<<if $secUpgrades.eyeScan == 0>>
-		[[Install invisible eye scanners|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $secUpgrades.eyeScan = 1, $secRestPoint += 20, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>>. Will raise rest point of security by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
+		[[Install invisible eye scanners|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.eyeScan = 1, $secRestPoint += 20, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will raise rest point of security by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
 	<<else>>	
 		You have installed numerous hidden eye scanners that accurately register the movements of everyone inside the arcology.
 	<</if>>
 	<br>
 	<<if $secUpgrades.cryptoAnalyzer == 0>>
-		[[Buy and install crypto analyzers|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology), $secUpgrades.cryptoAnalyzer = 1, $secRestPoint += 20, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology)>>. Will raise rest point of security by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
+		[[Buy and install crypto analyzers|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.cryptoAnalyzer = 1, $secRestPoint += 20, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will raise rest point of security by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
 	<<else>>
 		You have bought and employed sophisticated crypto analyzing software to accurately track and archive every financial movement or transaction made inside the walls of your arcology.
 	<</if>>	
@@ -157,30 +163,30 @@ Considering the current upgrades the maximum level of crime is <<print $crimeCap
 <br>
 
 <<if $crimeUpgrades.advForensic == 0>>
-	[[Install advanced forensic equipment|securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $crimeUpgrades.advForensic = 1, $crimeCap -= 10, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>. Will bring down the crime level cap by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Install advanced forensic equipment|securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount), $crimeUpgrades.advForensic = 1, $crimeCap -= 10, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will bring down the crime level cap by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have installed advanced forensic equipment, able to extract every bit of precious information from any clue.
 <</if>>
 <br>
 <<if $crimeUpgrades.autoArchive == 0>>
-	[[Install auto-curating archiver|securityHQ][$cash -= Math.trunc(7500*$upgradeMultiplierArcology), $crimeUpgrades.autoArchive = 1, $crimeCap -= 10, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(7500*$upgradeMultiplierArcology)>>. Will bring down the crime level cap by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Install auto-curating archiver|securityHQ][$cash -= Math.trunc(7500*$upgradeMultiplierArcology*_HistoryDiscount), $crimeUpgrades.autoArchive = 1, $crimeCap -= 10, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(7500*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will bring down the crime level cap by 10 points, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have installed auto-curating archiver software, which will update in real time your data archives with any new relevant information on criminals residing in your arcology. 
 <</if>>
 <br>
 <<if $rep > 10000>>
 	<<if $crimeUpgrades.autoTrial == 0>>
-		[[Install automated trials software|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $crimeUpgrades.autoTrial = 1, $crimeCap -= 15, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>>. Will bring down the crime level cap by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
+		[[Install automated trials software|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount), $crimeUpgrades.autoTrial = 1, $crimeCap -= 15, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will bring down the crime level cap by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
 	<<else>>
 		You have installed advanced legal algorithms that allows the handling of legal matters much quicker and much more accurately.
 	<</if>>
 	<br>
 	<<if $crimeUpgrades.worldProfiler == 0>>
-		[[Install worldwide profilers|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology), $crimeUpgrades.worldProfiler = 1, $crimeCap -= 15, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology)>>. Will bring down the crime level cap by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
+		[[Install worldwide profilers|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount), $crimeUpgrades.worldProfiler = 1, $crimeCap -= 15, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will bring down the crime level cap by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep.//
 	<<else>>
 		You have installed advanced profiler software, which will constantly scour every known data archive on the globe (legally or not) to gather as much information as possible on dangerous criminals.
 	<</if>>
@@ -207,23 +213,23 @@ Considering the current upgrades the maximum level of crime is <<print $crimeCap
 <br>
 
 <<if $intelUpgrades.sensors == 0>>
-	[[Install perimeter	sensors|securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $intelUpgrades.sensors = 1, $recon += 1, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>. Will increase recon capabilites, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Install perimeter	sensors|securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount), $intelUpgrades.sensors = 1, $recon += 1, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase recon capabilites, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have installed perimeter seismic sensors able to detect movement with high accuracy.
 <</if>>
 <br>
 <<if $intelUpgrades.signalIntercept == 0>>
-	[[Create signal interception hub|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $intelUpgrades.signalIntercept = 1, $recon += 1, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>>. Will increase recon capabilites, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Create signal interception hub|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount), $intelUpgrades.signalIntercept = 1, $recon += 1, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase recon capabilites, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have installed advanced signal interception equipment.
 <</if>>
 <br>
 <<if $rep > 10000>>
 	<<if $intelUpgrades.radar == 0>>
-		[[Install advanced radar equipment|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology), $intelUpgrades.radar = 1, $recon += 1, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology)>>. Will increase recon capabilites, but will require 10 extra slaves in the headquarters and increases upkeep.//
+		[[Install advanced radar equipment|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount), $intelUpgrades.radar = 1, $recon += 1, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase recon capabilites, but will require 10 extra slaves in the headquarters and increases upkeep.//
 	<<else>>
 		You have installed sophisticated radar equipment.
 	<</if>>
@@ -250,30 +256,30 @@ Considering the current upgrades the maximum level of crime is <<print $crimeCap
 <br>
 
 <<if $readinessUpgrades.pathways == 0>>
-	[[Build specialized pathways in the arcology|securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $readinessUpgrades.pathways = 1, $readiness += 1, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>. Will increase readiness by 1, but will increases upkeep.//
+	[[Build specialized pathways in the arcology|securityHQ][$cash -= Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount), $readinessUpgrades.pathways = 1, $readiness += 1, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase readiness by 1, but will increases upkeep.//
 <<else>>
 	You have built specialized pathways inside the arcology to quickly move troops around the structure.
 <</if>>
 <br>
 <<if $readinessUpgrades.rapidVehicles == 0>>
-	[[Buy rapid armored transport vehicles|securityHQ][$cash -= Math.trunc(7500*$upgradeMultiplierArcology), $readinessUpgrades.rapidVehicles = 1, $readiness += 2, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-	<br>//Costs ¤<<print Math.trunc(75000*$upgradeMultiplierArcology)>>. Will increase readiness by 2, but will require 5 extra slaves in the headquarters and increases upkeep.//
+	[[Buy rapid armored transport vehicles|securityHQ][$cash -= Math.trunc(7500*$upgradeMultiplierArcology*_HistoryDiscount), $readinessUpgrades.rapidVehicles = 1, $readiness += 2, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+	<br>//Costs ¤<<print Math.trunc(75000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase readiness by 2, but will require 5 extra slaves in the headquarters and increases upkeep.//
 <<else>>
 	You have bought rapid armored transport vehicles able to bring your troops to battle much quicker than before.
 <</if>>
 <br>
 <<if $rep > 10000>>
 	<<if $readinessUpgrades.rapidPlatforms == 0>>
-		[[Build rapid deployment platforms|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $readinessUpgrades.rapidPlatforms = 1, $readiness += 2, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>>. Will increase readiness by 2, but will require 5 extra slaves in the headquarters and increases upkeep.//
+		[[Build rapid deployment platforms|securityHQ][$cash -= Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount), $readinessUpgrades.rapidPlatforms = 1, $readiness += 2, $reqHelots += 5, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase readiness by 2, but will require 5 extra slaves in the headquarters and increases upkeep.//
 	<<else>>
 		You have built rapid deployment platforms able to equip and deploy units within very limited time windows.
 	<</if>>
 	<br>
 	<<if $readinessUpgrades.earlyWarn == 0>>
-		[[Institute early warning systems|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology), $readinessUpgrades.earlyWarn = 1, $readiness += 2, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology)>>. Will increase readiness by 2, but will require 10 extra slaves in the headquarters and increases upkeep.//
+		[[Institute early warning systems|securityHQ][$cash -= Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount), $readinessUpgrades.earlyWarn = 1, $readiness += 2, $reqHelots += 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(15000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will increase readiness by 2, but will require 10 extra slaves in the headquarters and increases upkeep.//
 	<<else>>
 		You have created early warning systems that constantly analyze in real time data to determine the likeness of an attack.
 	<</if>>
@@ -289,36 +295,36 @@ Considering the current upgrades the maximum level of crime is <<print $crimeCap
 	<<if $secUpgrades.coldstorage == 6 && $rep >= 19500 && $reqHelots > 10>>
 		<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of two years.
 		<br>
-		[[Expand the cold storage facility to increase data retention to three years|securityHQ][$cash -= Math.trunc(2400000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(2400000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
+		[[Expand the cold storage facility to increase data retention to three years|securityHQ][$cash -= Math.trunc(2400000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(2400000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage == 5 && $rep >= 19500 && $reqHelots > 10>>
 	<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of one year.
 		<br>
-		[[Expand the cold storage facility to increase data retention to two years|securityHQ][$cash -= Math.trunc(1200000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(1200000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
+		[[Expand the cold storage facility to increase data retention to two years|securityHQ][$cash -= Math.trunc(1200000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(1200000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage == 4 && $rep >= 19500 && $reqHelots > 10>>
 		<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of nine months.
 		<br>
-		[[Expand the cold storage facility to increase data retention to one year|securityHQ][$cash -= Math.trunc(900000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(900000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
+		[[Expand the cold storage facility to increase data retention to one year|securityHQ][$cash -= Math.trunc(900000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(900000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage == 3 && $rep > 18000 && $reqHelots > 10>>
 		<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of six months.
 		<br>
-		[[Expand the cold storage facility to increase data retention to nine months|securityHQ][$cash -= Math.trunc(600000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(600000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
+		[[Expand the cold storage facility to increase data retention to nine months|securityHQ][$cash -= Math.trunc(600000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(600000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage == 2 && $rep > 16000 && $reqHelots > 10>>
 		<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of three months.
 		<br>
-		[[Expand the cold storage facility to increase data retention to six months|securityHQ][$cash -= Math.trunc(300000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(300000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
+		[[Expand the cold storage facility to increase data retention to six months|securityHQ][$cash -= Math.trunc(300000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(300000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage == 1 && $rep > 14000 && $reqHelots > 10>>
 		<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of one month.
 		<br>
-		[[Expand the cold storage facility to increase data retention to three months|securityHQ][$cash -= Math.trunc(100000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(1000000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
+		[[Expand the cold storage facility to increase data retention to three months|securityHQ][$cash -= Math.trunc(100000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(1000000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by a further 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage == 0 && $rep > 12000 && $reqHelots > 10>>
-		[[Install a cold storage facility|securityHQ][$cash -= Math.trunc(50000*$upgradeMultiplierArcology), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
-		<br>//Costs ¤<<print Math.trunc(500000*$upgradeMultiplierArcology)>>. Will lower the amount of required slaves by 10, but will increases upkeep.//
+		[[Install a cold storage facility|securityHQ][$cash -= Math.trunc(50000*$upgradeMultiplierArcology*_HistoryDiscount), $secUpgrades.coldstorage++, $reqHelots -= 10, $secHQUpkeep += $upgradeUpkeep]]
+		<br>//Costs ¤<<print Math.trunc(500000*$upgradeMultiplierArcology*_HistoryDiscount)>>. Will lower the amount of required slaves by 10, but will increases upkeep.//
 	<<elseif $secUpgrades.coldstorage > 6>>
 		<br>You have installed a cold storage facility for the Security HQ's archives with a data retention capability of three years.
 	<<elseif $reqHelots <= 10>>