How to avoid the effects of magnetic