working on IE8 compatibility