fixed bug, reading incorrect number of sweeps, crrctd.