working on IE8
added tests