criando backtracking