fix ten millions logic, all tests now pass