changed snippets for eruby