pagination implemented for packaging