code for adopt a block