update header for 2D scans