made sqrt method