init of speed-up balanced sampling
working on valid replacement