add second dictionary for codeToArray