implemented some generate_quads