cleaner method of hash lookup