sort out header