removing un-used pages