changed api of highlighting