preliminary support for removing extra pages