updated version taht works with IE