correct deprecated methods