refine adj grouping with the grouped_df_adj_impl function. #237