clean base template