Changed output  C to tri state buffer