using resistive or capacitive elements