adding the new grouping script