added generation of content and header