use ECMAScript 6 syntax
improve task composition