refactor: drawBlock method