BEFORE IMPLEMENTING WINDOW