Replace struct