replaced another deprecated Method