making iterators and add indexing functions for my datasets