more template finalization