fixed es6 snippets