add some code for tech accumulation.