changed language and logic for res_block_check slightly