compare for errors