updated multiply to prevent crashes associated with NthRoot