applied templates to all folders