changing outputs to group table