cleaning up base template