hamilton backtrack