some more corrections to affine automata system.