fixed MST qn generator