simplifying the square root