better version for indexedpouch