update drawBlock()