modified the chi calling fn, still runs 1000000 in 6.142s