overall header code change
added switch to header code