rename btreedictionary. remove IndexOf calls and use saved index for lookup