removed the unused items_per_page variable