optimize the area that shows the data