added local weights
sampling of synthetic data works