[new] added pagination to loops