generating six reg tables