using w for window since it's within the scope