added output schema and set qual to 0 for each SV