remove blank headers before processing