addind debugging messages for dictionary matching