using a lambda for default_scope