added sqrt for floats