updating tool and template