change the way to get Headers