made all gates return Outs
graph representation