updated parsing header