set_value, prepare and shuffle