implement dictionary search