ROOT, PARAMLIST, type writing function