finished similarity_calc's correct computing