something wrong with addstrxy, or xytoindex