added sqrt method