fixed snippet nesting