positioning the caret