added transistors for output ports