modify ruby snippets