change PAV algorithm