update sqr to int