updated for IE support