remove hardcoding of window