fixed the col/row <-> x/y usage