fixing square root