a little optimized direct name search and comparision