renamed function from triple to square