gotoh local and freeshift backtracking