converted to 1D blocks and grids