change chi do have more of a grouping function