eliminated a number of square roots that were redundant