renamed similarity method