do a "soft reset" every 10 cycles
whitespace
use event.currentTarget instead of this
extract valve