preparation for scrolling