made checking for errors of highlight