score and bug fix