remove unnecessary sections