general template cleansing