modified main::add, hashDictionary::find