use another approach that also works in IE