warning: assigned but unused variable - item_index_in_page