snippet now written to file.