delete unused code from each case, print created header