Treshold panel added(similarity function)