changed the way to print quads
production mode of quadruples