correct way to set window properties