generate content only when creating a new file