cut unneeded sections