classification with two different threshold method