grouping and plotting proceeded