explicitly reset the index instead of using hacky sleep()