additional ctor for window