dictionary lookup working