remove tmp rets variable