put working scoring code back