changing grid structure