clean packing - with variable page_size