additions to groupby