updated groupbydate