format returnIx and extendIx