local-ize scroll variables to allow for multiple index reads