changes to the score method - still not working very well