removed calls to deprecated method