keep same Window stuff together
comments for clarity