update for scrolling