improved indentation removal  methods