updating deprecated syntax