improve windowSize for graphing