added indexedseq functions