bettered calc_set_sim and allowed running on random susbsets and chosen restypes