working toward searching and pagination