adjusted data.py to load repeated data