changed errors to error