change output dir in example codes