added window method