replaced another pointer with reference.