updated the deprecated method calls