added pagination in step3