bug fix, and display score