method dictionary-sample