going to optimize the ai econ algo