score method working