remove indices on stream use logical indexing