got pagenation working