1-based window indexing