Applying nesting