added window size option