created a window for backtracking