added IE8 compatibility