much faster nesting and filtering