how to design stable circuits