page_number now a local variable