gh-126 use new nth function
gh-126 use new nth function