updates based on nesting