removes uses of deprecated method