add scoring code