templates cleaning