cleanup term form