updated headParse.go