fixed grouping of blocks