started work on pagination