replaces headers with num_columns