removed cell_len from struct grid