now with working pagination!