fixed two minor circuitry errors