1.fix bug of scorefunction.now it can get the right number