use global cellsize instead of cell.width, cell.height