fixes throw Error
drops old arrow functions