update structures