added missing variable definitions for scroll feature