in progress backtracking algo