updated scoring part