update wind with setinterval