summary for backtracking