updating caret