start window index from 1