delete redundant sections