pagination implemented for intermediates