involving permanent magnets