cleanup
cleanup
fold write_combo_irreg into write_irreg
cleanup
cleanup