removing deprecated api's