add errors to code