find memory leaking when similarity is on
fixed the ann bug,
going to add Need_original_combine_sample