confirming var reset on removeOldPages