diagram update