implemented single doc iterations and load whole dataset