make sampling faster