added error highlighting