add remember gate