cleaned up error dictionary