removed simulate->ret_count reference