bug fixes for score method