update shiftWindow