updating blocks