remove ret.codes; not used