better approach for cursor

works in plain text now