done partition in templates