harmonize the sample