initial (bad) version of dictionary lookup