updates structure