revert to original, with `ret = i === 0 ? list : ret;` removed. also converted spaces to tabs.