finalized and checked pagination in local env. works!