extract es6