moved polyfill to seperate file