#31 added bounds for scrolling