update the second trial of anagrams