improved IE8 compat