some updateds to mxCI
Need to think through the final goal of this function