added pagination by period