implemented stream indexing, obtaining bound stream