transition to ES6