set_block helper