refactor
insert_columns sets frequency