change x/y to len1/len2