sorting out header