update blocks.