added encode v2 qc