init ver with anagram algorithm