removed using deprecated apis