adjust the optimal size for mac