modified createsamples.py