adds a third argument for fillBlock() to keep track of the block index while debugging