updating deprecated apis