add function to parse the header