more reliable method of `window` obtainment