cleanup templates