attempt to make scrolling variable