auto update from diagram