added code to modify header
added code to modify header