add errors and states