fixed duplicate header problem