remembering the gate output