adding pattern to the header