moved everything into the square root