added sequence for grid.