some explanation from experiments.
remove debugging stuff.
remove the hack that was necessary for multiples of four.