updating for errors