fixing bugs with 3 way parallel circuit