fixed syntax errors in scoring