better window declaration