working dictionary finder code