add subcolumns fuction