removing extra lines not needed for open window to work