changed score calculation for classification