fixes to circuit