updated polyfills to modernize in the defaults