change slice/ValueData compare function