what do you think about having this block return the value and setting `value` outside the block?