compare compass needle deflection under the wire with charge flowing into the risis wirth deflection under the wire with charge flowing out of the resistor