rewrite for IE8