put grid first