remove unneeded sections