added "end phrase" structure. saving dr output