update tool as extra function

update tool as extra function