remove dependency on es5 methods