Added tripple function