query builder and scroll