now using std db grouping