added method for score