base 0 for grid