working on aligning the cursor with the characters