compare to dictionary