remove deprecated api