add phrasefile function