removed pages function