finish basic pagination