What is the role of resistors and capacitors