change oldie function definitions to ES6 style function definitions