small modified for qc.js