fix pkl bug and add reduction