improve header code to handle empty header columns.