grouped data and merged data