fixed all bugs related to using new block and grid sizes