adding buying tools function