reverted IE changes not working with this logic
reverted xor