first implementation of caret position to further tests