optimization of the matrix grid
display empty cells in the good place