list.next() refactoring
Merge pull request #2 from ShevtsovAleksey/fix

list.next() refactoring