pagination and relationships done