optimize ram, wintoview, viewtowin