does this need to be called on each individual x (x for each group) or could this use the stacked x?