alter to be compatible with IE8.