cmp x instead of i with cursor position