ignore this, residsq is used in the next line