added struct2file