working on scroll detection stuff