added code to modify header