moved shims around to make IE8 function