updating deprecated calls