added window buffer