added pagination on ps