enable distinct and filtering