converte next to __next__