use integer square root