update according to master structure