cleaned out error codes