remove some es6 syntax