wrong function of square and cube