remove unnecessary pages