added window graphing