only one return in getScore() method