corrected target distribution (correct mean). Code updated for xval