working through groupby