moved shuffle to reader.py