remove deprecated api calls.