created tetra_qc.cpp