put snippet in header