updating data in header