creates a new snippet