replace ostruct