probably an unnecessary computation given that we can make the scroll function have that information in it.