rebounce example with forloop