microoptimize and standardize formatting in templates