improve dictionary.m