re arrange caret