take objects as the value of voltage and current sources