remove the threshold parameter from clustering method