set_block simplified