small resolution of since both in1 and in2 in previous circuit will be complementary else it is in braking mode i used a npn transistor q6 as a not gate to invert in1 and 