modified the grid scaling