change the blocks to int