file shuffling, added equality tests