added a check for IE