algos
updated sampling