add learn sequence terminal expr