use wid instead of window for consistency