adjust template attributes