added sqrt checking function