huge parameter check for similarity