replaced year, month, day grouping with intervall grouping