update struce