add tools function.