added sqrt functionality