update with nesting