removing templates