turn off after output pulse