modified again to test for modernIE