resolve syntax errors in refineTransformICP
complete refineTransformICP function