remove some unused functions, fix chosen_samples duplicate bug by resetting it for the choose comp step