updating deprecated method calls