compute_sim algo changed