added an accessor method; then used it.