update sqrt
small modification