improve dictionary autocomplete example