made pager method generic